import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

export const routes = [
  {
    path: '/',
    name: 'home',
    flag:true,
    component: () => import(/* webpackChunkName: "about" */ '../views/HomeView.vue')
  },
  {
    path: '/classify',
    name: 'classify',
    component: () => import(/* webpackChunkName: "about" */ '../views/Classify.vue')
  },
  {
    path: '/shopcar',
    name: 'shopcar',
    component: () => import(/* webpackChunkName: "about" */ '../views/ShopCar.vue')
  },
  {
    path: '/My',
    name: 'my',
    component: () => import(/* webpackChunkName: "about" */ '../views/My.vue')
  }
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})


export default router
